getFaces

abstract fun getFaces(): Iterator<out FaceInfo>

Gets an iterator over the set of faces detected during this impression event.

Each element returned by the iterator implements the FaceInfo interface, providing detailed attributes for a single detected face (e.g., tracking ID, estimated age, gender, smile detection).

If no faces were associated with this impression (which might indicate an impression triggered by other criteria or an empty detection result), the returned iterator will be empty (i.e., hasNext() will immediately return false).

Return

A non-null Iterator over FaceInfo objects. The iterator will be empty if no faces were detected or associated with this impression.

See also